//
//  XTGeomancyTableViewCell.m
//  BeautifulHome
//
//  Created by dlios on 15-5-13.
//  Copyright (c) 2015年 ACE. All rights reserved.
//

#import "XTGeomancyTableViewCell.h"

@implementation XTGeomancyTableViewCell
- (void)dealloc
{
    [_l1 release];
    [_l2 release];
    [_mImageView release];
    [super dealloc];
}
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // 创建label
        self.l1 = [[UILabel alloc] init];
        [self.contentView addSubview:_l1];
        [_l1 release];
        
        self.l2 = [[UILabel alloc] init];
        [self.contentView addSubview:_l2];
        [_l2 release];
        
        self.mImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:_mImageView];
        [_mImageView release];
    }
    return self;
}
- (void)layoutSubviews
{
    [super layoutSubviews];
    [_l1 setFont:[UIFont systemFontOfSize:18]];
    _l1.frame = CGRectMake(100, 10, self.contentView.frame.size.width - 110, 25);
    [_l2 setFont:[UIFont systemFontOfSize:13]];
    _l2.numberOfLines = 2;
    _l2.frame = CGRectMake(100, 35, self.contentView.frame.size.width - 110, 40);
    _mImageView.frame = CGRectMake(8, 10, 80, 60);
    
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
